package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastMessge implements Serializable {
    private Integer id;

    private String content;

    private Date createtime;

    private String title;

    private Integer type;

    private Integer userid;

    private String username;

    private String cityid;

    private String cityname;

    private String countyid;

    private String countyname;

    private Date end;

    private Date start;

    private String townid;

    private String townname;

    private Integer agentid;

    private String agentname;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastMessge withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public RunfastMessge withContent(String content) {
        this.setContent(content);
        return this;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastMessge withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getTitle() {
        return title;
    }

    public RunfastMessge withTitle(String title) {
        this.setTitle(title);
        return this;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Integer getType() {
        return type;
    }

    public RunfastMessge withType(Integer type) {
        this.setType(type);
        return this;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getUserid() {
        return userid;
    }

    public RunfastMessge withUserid(Integer userid) {
        this.setUserid(userid);
        return this;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public RunfastMessge withUsername(String username) {
        this.setUsername(username);
        return this;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getCityid() {
        return cityid;
    }

    public RunfastMessge withCityid(String cityid) {
        this.setCityid(cityid);
        return this;
    }

    public void setCityid(String cityid) {
        this.cityid = cityid == null ? null : cityid.trim();
    }

    public String getCityname() {
        return cityname;
    }

    public RunfastMessge withCityname(String cityname) {
        this.setCityname(cityname);
        return this;
    }

    public void setCityname(String cityname) {
        this.cityname = cityname == null ? null : cityname.trim();
    }

    public String getCountyid() {
        return countyid;
    }

    public RunfastMessge withCountyid(String countyid) {
        this.setCountyid(countyid);
        return this;
    }

    public void setCountyid(String countyid) {
        this.countyid = countyid == null ? null : countyid.trim();
    }

    public String getCountyname() {
        return countyname;
    }

    public RunfastMessge withCountyname(String countyname) {
        this.setCountyname(countyname);
        return this;
    }

    public void setCountyname(String countyname) {
        this.countyname = countyname == null ? null : countyname.trim();
    }

    public Date getEnd() {
        return end;
    }

    public RunfastMessge withEnd(Date end) {
        this.setEnd(end);
        return this;
    }

    public void setEnd(Date end) {
        this.end = end;
    }

    public Date getStart() {
        return start;
    }

    public RunfastMessge withStart(Date start) {
        this.setStart(start);
        return this;
    }

    public void setStart(Date start) {
        this.start = start;
    }

    public String getTownid() {
        return townid;
    }

    public RunfastMessge withTownid(String townid) {
        this.setTownid(townid);
        return this;
    }

    public void setTownid(String townid) {
        this.townid = townid == null ? null : townid.trim();
    }

    public String getTownname() {
        return townname;
    }

    public RunfastMessge withTownname(String townname) {
        this.setTownname(townname);
        return this;
    }

    public void setTownname(String townname) {
        this.townname = townname == null ? null : townname.trim();
    }

    public Integer getAgentid() {
        return agentid;
    }

    public RunfastMessge withAgentid(Integer agentid) {
        this.setAgentid(agentid);
        return this;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public String getAgentname() {
        return agentname;
    }

    public RunfastMessge withAgentname(String agentname) {
        this.setAgentname(agentname);
        return this;
    }

    public void setAgentname(String agentname) {
        this.agentname = agentname == null ? null : agentname.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", content=").append(content);
        sb.append(", createtime=").append(createtime);
        sb.append(", title=").append(title);
        sb.append(", type=").append(type);
        sb.append(", userid=").append(userid);
        sb.append(", username=").append(username);
        sb.append(", cityid=").append(cityid);
        sb.append(", cityname=").append(cityname);
        sb.append(", countyid=").append(countyid);
        sb.append(", countyname=").append(countyname);
        sb.append(", end=").append(end);
        sb.append(", start=").append(start);
        sb.append(", townid=").append(townid);
        sb.append(", townname=").append(townname);
        sb.append(", agentid=").append(agentid);
        sb.append(", agentname=").append(agentname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}